CKEDITOR.editorConfig = function( config ) {
    config.extraPlugins =['tableresize'];//"datadetails"
    config.toolbar = [
        // { name: 'document', items: [ 'Source', '-', 'Save', 'NewPage', 'ExportPdf', 'Preview', 'Print', '-', 'Templates' ] },
        // { name: 'document', items: [ 'Preview', 'Print'] },
        // { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
        { name: 'clipboard', items: [  'Undo', 'Redo' ] },
        // { name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll', '-', 'Scayt' ] },
        { name: 'editing', items: [ 'Find', 'Replace', '-', 'SelectAll' ] },
        // { name: 'forms', items: [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },
        { name: 'forms', items: [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button'] },
        '/',
        { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'CopyFormatting', 'RemoveFormat' ] },
        // { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language' ] },
        { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
        { name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] },
        // { name: 'insert', items: [ 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe' ] },
        { name: 'insert', items: ['Image','Table','SpecialChar', 'PageBreak',] },
        '/',
        // { name: 'styles', items: [ 'Styles', 'Format', 'Font', 'FontSize' ] },
        { name: 'styles', items: [ 'FontSize' ] },
        { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
        // { name: 'tools', items: [ 'Maximize', 'ShowBlocks' ] },
        { name: 'tools', items: [ 'Maximize' ] },
        // { name: 'about', items: [ 'About' ] },
        // { name: 'custome_plugin', items : [ 'datadetails'] },
    ];
};

CKEDITOR.on('dialogDefinition', function(ev) {
    // Take the dialog name and its definition from the event data
    var dialogName = ev.data.name;
    var dialogDefinition = ev.data.definition;
    var editor = ev.editor;
    if (dialogName === 'image') {
        // console.log('dialogDefinition', dialogDefinition)
        var infoTab = dialogDefinition.getContents( 'info' );
        // console.log('infoTab', infoTab)
        infoTab.elements[0].children[0].children[0].default = 'https://t7.baidu.com/it/u=2471051649,2314656574&fm=193&f=GIF'
    }
});
/**
 *
 * 以下代码行数备注针对于ckeditor.js 备份版本为ckeditorBak.js
 * 
 * 
 * 备注：
 * 单元格属性由plugins/tabletools/tableCell控制
 * 单元格格式 195行
 * 
 * 
 * 源码备注：
 * table 右键菜单设置位于 33189 行
 * 行设置 右键菜单设置位于 33992 行
 * 
 * 
 * 开发备注：
 * 1、修改目的：为表格中的右键菜单 行一栏属性增加按钮 “设置详细数据” “取消详细数据”
 *    修改处：33752-33773  34034-34045  34011、34012 tablerowWithInfoClose
 * 
 * 
 */
